package com.exer.basic.designpattern.principle.lsp;

public class Vehicle {

    public float getSpeed() {
        System.out.println("vehicle getSpeed");
        return 0l;
    }

    public int getCubicCapacity() {
        System.out.println("vehicle getCubicCapacity");
        return 0;
    }

    public static void main(String[] args) {
        Vehicle vehicle = new Car();
        vehicle.getSpeed();
        Vehicle vehicle1 = new Vehicle();
        vehicle1.getSpeed();
    }
}
